<?php
$tdatatbl_stats=array();
	$tdatatbl_stats[".NumberOfChars"]=80; 
	$tdatatbl_stats[".ShortName"]="tbl_stats";
	$tdatatbl_stats[".OwnerID"]="";
	$tdatatbl_stats[".OriginalTable"]="tbl_stats";


	
//	field labels
$fieldLabelstbl_stats = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_stats["English"]=array();
	$fieldToolTipstbl_stats["English"]=array();
	$fieldLabelstbl_stats["English"]["id"] = "Id";
	$fieldToolTipstbl_stats["English"]["id"] = "";
	$fieldLabelstbl_stats["English"]["s_time"] = "S Time";
	$fieldToolTipstbl_stats["English"]["s_time"] = "";
	$fieldLabelstbl_stats["English"]["s_id"] = "S Id";
	$fieldToolTipstbl_stats["English"]["s_id"] = "";
	if (count($fieldToolTipstbl_stats["English"])){
		$tdatatbl_stats[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_stats[".NCSearch"]=true;

	

$tdatatbl_stats[".shortTableName"] = "tbl_stats";
$tdatatbl_stats[".nSecOptions"] = 0;
$tdatatbl_stats[".recsPerRowList"] = 1;	
$tdatatbl_stats[".tableGroupBy"] = "0";
$tdatatbl_stats[".mainTableOwnerID"] = "";
$tdatatbl_stats[".moveNext"] = 1;




$tdatatbl_stats[".showAddInPopup"] = false;

$tdatatbl_stats[".showEditInPopup"] = false;

$tdatatbl_stats[".showViewInPopup"] = false;


$tdatatbl_stats[".fieldsForRegister"] = array();

$tdatatbl_stats[".listAjax"] = false;

	$tdatatbl_stats[".audit"] = false;

	$tdatatbl_stats[".locking"] = false;
	
$tdatatbl_stats[".listIcons"] = true;
$tdatatbl_stats[".edit"] = true;
$tdatatbl_stats[".inlineEdit"] = true;
$tdatatbl_stats[".view"] = true;

$tdatatbl_stats[".exportTo"] = true;

$tdatatbl_stats[".printFriendly"] = true;

$tdatatbl_stats[".delete"] = true;

$tdatatbl_stats[".showSimpleSearchOptions"] = false;

$tdatatbl_stats[".showSearchPanel"] = true;


$tdatatbl_stats[".isUseAjaxSuggest"] = true;

$tdatatbl_stats[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_stats[".addPageEvents"] = false;

$tdatatbl_stats[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_stats[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_stats[".isUseTimeForSearch"] = false;

$tdatatbl_stats[".isUseiBox"] = false;



$tdatatbl_stats[".isUseInlineAdd"] = true;

$tdatatbl_stats[".isUseInlineEdit"] = true;
$tdatatbl_stats[".isUseInlineJs"] = $tdatatbl_stats[".isUseInlineAdd"] || $tdatatbl_stats[".isUseInlineEdit"];

$tdatatbl_stats[".allSearchFields"] = array();

$tdatatbl_stats[".globSearchFields"][] = "s_time";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("s_time", $tdatatbl_stats[".allSearchFields"]))
{
	$tdatatbl_stats[".allSearchFields"][] = "s_time";	
}
$tdatatbl_stats[".globSearchFields"][] = "s_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("s_id", $tdatatbl_stats[".allSearchFields"]))
{
	$tdatatbl_stats[".allSearchFields"][] = "s_id";	
}


$tdatatbl_stats[".googleLikeFields"][] = "id";
$tdatatbl_stats[".googleLikeFields"][] = "s_time";
$tdatatbl_stats[".googleLikeFields"][] = "s_id";



$tdatatbl_stats[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_stats[".allSearchFields"])) 
{
	$tdatatbl_stats[".allSearchFields"][] = "id";	
}
$tdatatbl_stats[".advSearchFields"][] = "s_time";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("s_time", $tdatatbl_stats[".allSearchFields"])) 
{
	$tdatatbl_stats[".allSearchFields"][] = "s_time";	
}
$tdatatbl_stats[".advSearchFields"][] = "s_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("s_id", $tdatatbl_stats[".allSearchFields"])) 
{
	$tdatatbl_stats[".allSearchFields"][] = "s_id";	
}

$tdatatbl_stats[".isTableType"] = "list";


	

$tdatatbl_stats[".isDisplayLoading"] = true;

$tdatatbl_stats[".isResizeColumns"] = false;





$tdatatbl_stats[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_stats[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_stats[".orderindexes"] = array();

$tdatatbl_stats[".sqlHead"] = "SELECT id,  s_time,  s_id";
$tdatatbl_stats[".sqlFrom"] = "FROM tbl_stats";
$tdatatbl_stats[".sqlWhereExpr"] = "";
$tdatatbl_stats[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_stats[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_stats[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_stats[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_stats";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatatbl_stats["id"]=$fdata;
//	s_time
	$fdata = array();
	$fdata["strName"] = "s_time";
	$fdata["ownerTable"] = "tbl_stats";
		$fdata["Label"]="S Time"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "s_time";
	
		$fdata["FullName"]= "s_time";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_stats["s_time"]=$fdata;
//	s_id
	$fdata = array();
	$fdata["strName"] = "s_id";
	$fdata["ownerTable"] = "tbl_stats";
		$fdata["Label"]="S Id"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "s_id";
	
		$fdata["FullName"]= "s_id";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_stats["s_id"]=$fdata;

	
$tables_data["tbl_stats"]=&$tdatatbl_stats;
$field_labels["tbl_stats"] = &$fieldLabelstbl_stats;
$fieldToolTips["tbl_stats"] = &$fieldToolTipstbl_stats;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_stats"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_stats"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto40=array();
$proto40["m_strHead"] = "SELECT";
$proto40["m_strFieldList"] = "id,  s_time,  s_id";
$proto40["m_strFrom"] = "FROM tbl_stats";
$proto40["m_strWhere"] = "";
$proto40["m_strOrderBy"] = "";
$proto40["m_strTail"] = "";
$proto41=array();
$proto41["m_sql"] = "";
$proto41["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto41["m_column"]=$obj;
$proto41["m_contained"] = array();
$proto41["m_strCase"] = "";
$proto41["m_havingmode"] = "0";
$proto41["m_inBrackets"] = "0";
$proto41["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto41);

$proto40["m_where"] = $obj;
$proto43=array();
$proto43["m_sql"] = "";
$proto43["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto43["m_column"]=$obj;
$proto43["m_contained"] = array();
$proto43["m_strCase"] = "";
$proto43["m_havingmode"] = "0";
$proto43["m_inBrackets"] = "0";
$proto43["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto43);

$proto40["m_having"] = $obj;
$proto40["m_fieldlist"] = array();
						$proto45=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_stats"
));

$proto45["m_expr"]=$obj;
$proto45["m_alias"] = "";
$obj = new SQLFieldListItem($proto45);

$proto40["m_fieldlist"][]=$obj;
						$proto47=array();
			$obj = new SQLField(array(
	"m_strName" => "s_time",
	"m_strTable" => "tbl_stats"
));

$proto47["m_expr"]=$obj;
$proto47["m_alias"] = "";
$obj = new SQLFieldListItem($proto47);

$proto40["m_fieldlist"][]=$obj;
						$proto49=array();
			$obj = new SQLField(array(
	"m_strName" => "s_id",
	"m_strTable" => "tbl_stats"
));

$proto49["m_expr"]=$obj;
$proto49["m_alias"] = "";
$obj = new SQLFieldListItem($proto49);

$proto40["m_fieldlist"][]=$obj;
$proto40["m_fromlist"] = array();
												$proto51=array();
$proto51["m_link"] = "SQLL_MAIN";
			$proto52=array();
$proto52["m_strName"] = "tbl_stats";
$proto52["m_columns"] = array();
$proto52["m_columns"][] = "id";
$proto52["m_columns"][] = "s_time";
$proto52["m_columns"][] = "s_id";
$obj = new SQLTable($proto52);

$proto51["m_table"] = $obj;
$proto51["m_alias"] = "";
$proto53=array();
$proto53["m_sql"] = "";
$proto53["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto53["m_column"]=$obj;
$proto53["m_contained"] = array();
$proto53["m_strCase"] = "";
$proto53["m_havingmode"] = "0";
$proto53["m_inBrackets"] = "0";
$proto53["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto53);

$proto51["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto51);

$proto40["m_fromlist"][]=$obj;
$proto40["m_groupby"] = array();
$proto40["m_orderby"] = array();
$obj = new SQLQuery($proto40);

$queryData_tbl_stats = $obj;
$tdatatbl_stats[".sqlquery"] = $queryData_tbl_stats;

$tableEvents["tbl_stats"] = new eventsBase;

?>
